from application.db import get_database_connection

from application.db.mysql_db.article_ch.CnArticleAbstractInfo import CnArticleAbstractInfo
from application.db.mysql_db.article_ch.CnArticleAuthorList import CnArticleAuthorList
from application.db.mysql_db.article_ch.CnArticleAuthorPlatformIdRelation import CnArticleAuthorPlatformIdRelation
from application.db.mysql_db.article_ch.CnArticleAuthorRelation import CnArticleAuthorRelation
from application.db.mysql_db.article_ch.CnArticleAuthorUnitList import CnArticleAuthorUnitList
from application.db.mysql_db.article_ch.CnArticleGrantRelation import CnArticleGrantRelation
from application.db.mysql_db.article_ch.CnArticleJournalPlatformIdRelation import CnArticleJournalPlatformIdRelation
from application.db.mysql_db.article_ch.CnArticleKeywordsList import CnArticleKeywordsList
from application.db.mysql_db.article_ch.CnArticleKeywordsRelation import CnArticleKeywordsRelation
from application.db.mysql_db.article_ch.CnArticleList import CnArticleList
from application.db.mysql_db.article_ch.CnArticleReferenceList import CnArticleReferenceList
from application.db.mysql_db.article_ch.CnArticleTypeDict import CnArticleTypeDict
from application.db.mysql_db.article_ch.CnArticleTypeRelation import CnArticleTypeRelation
from application.db.mysql_db.article_ch.CnArticleUnitPlatformIdRelation import CnArticleUnitPlatformIdRelation

db = get_database_connection()
db.connect()
db.create_tables([
    CnArticleAbstractInfo,
    CnArticleAuthorList,
    CnArticleAuthorPlatformIdRelation,
    CnArticleAuthorRelation,
    CnArticleAuthorUnitList,
    CnArticleGrantRelation,
    CnArticleJournalPlatformIdRelation,
    CnArticleKeywordsList,
    CnArticleKeywordsRelation,
    CnArticleList,
    CnArticleReferenceList,
    CnArticleTypeDict,
    CnArticleTypeRelation,
    CnArticleUnitPlatformIdRelation
])